CC := gcc

create: 01_create.c
	-@$(CC) $^ -o $@
	-@./$@
	-@rm $@

detach: 02_detach.c
	-@$(CC) $^ -o $@
	-@./$@
	-@rm $@

cancel: 03_cancel.c
	-@$(CC) $^ -o $@
	-@./$@
	-@rm $@

thread_safe: 04_thread_safe.c
	-@$(CC) $^ -o $@
	-@./$@
	-@rm $@

condition: 05_condition.c
	-@$(CC) $^ -o $@
	-@./$@
	-@rm $@

semophere: 06_semophere.c
	-@$(CC) $^ -o $@
	-@./$@
	-@rm $@

practice: 07_practice.c
	-@$(CC) $^ -o $@
